package com.ywdnf.gomoku.model.auth;


import java.security.Principal;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * ws 认证
 *
 * @author lss
 * @date 2019-02-08, Fri
 */

@AllArgsConstructor
@Getter
public class MyPrincipal implements Principal {

    /**
     * 唯一id
     */
    private String id;

    @Override
    public String getName() {
        return id;
    }
}
